package BaseDatos.DAO;

import Servidor.Modelo.Games.Game;
import Servidor.Modelo.Users.User;
import java.util.ArrayList;

/**
 * @author Angel Lopez
 */
public interface OcaDAO {
    public int insert_user(String nick, String pass, String email, int type_user);
    public boolean delete_user(int id_user);
    public int update_user(int id_user, String nick, String pass, String email, int type_user);
    public User select_user(int id_user);
    public User select_user_by_nick(String nick);
    public int select_user_login(String nick, String pass);
    public ArrayList<User> select_list_users();
    
    public int insert_game(int id_owner, String name_game);
    public boolean delete_game(int id_game);
    public int update_game_finish(int id_game, int id_winner);
    public int update_game_finish_date(int id_game);
    public ArrayList<Game> select_list_games();
    public ArrayList<Game> select_list_games_active();
    
    public int insert_player(int id_game, int id_player);
    public ArrayList<String> select_player();
    
    
}
